home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / objectex / Makefile < prev    next >
Encoding:
Makefile  |  2000-01-01  |  1.3 KB  |  57 lines

  1. #######################################################################
  2. #
  3. # Makefile to compile all examples and convert them to LaTeX
  4. #######################################################################
  5.  
  6. # Compiler
  7. PP=ppc386
  8.  
  9. # Unit directory
  10. # UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
  11.  
  12.  
  13. # Any options you wish to pass.
  14. PPOPTS=
  15.  
  16. # Script to convert the programs to LaTeX examples which can be included.
  17. PP2TEX=../pp2tex
  18.  
  19. # Script to collect all examples in 1 file.
  20. MAKETEX=make1tex
  21.  
  22. #######################################################################
  23. # No need to edit after this line.
  24. #######################################################################
  25.  
  26. ifdef UNITDIR
  27. PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
  28. endif
  29.  
  30. .SUFFIXES: .pp .tex
  31.  
  32. .PHONY: all tex clean
  33.  
  34. OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 \
  35.         ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18 ex19 ex20 \
  36.         ex21 ex22 ex23 ex24 ex25 ex26 ex27 ex28 ex29 ex30 \
  37.         ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 
  38.  
  39. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  40.  
  41. all : $(OBJECTS)
  42.  
  43. tex : $(TEXOBJECTS) myobject.tex mysortc.tex
  44.  
  45. onetex : tex
  46.     $(MAKETEX) $(TEXOBJECTS)
  47.  
  48. clean : 
  49.     rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS) mysortc.ppu myobject.ppu mysortc.tex myobject.tex test.dat
  50.  
  51. $(OBJECTS): %: %.pp
  52.     $(PP) $(PPOPTS) $*
  53.  
  54. $(TEXOBJECTS) myobject.tex mysortc.tex: %.tex: %.pp head.tex foot.tex
  55.     $(PP2TEX) $*
  56.